package com.mhy.netsafe.setting;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.allenliu.versionchecklib.v2.AllenVersionChecker;
import com.allenliu.versionchecklib.v2.builder.UIData;
import com.mhy.netsafe.R;

public class SettingActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);
    }
    public void checkUpdata(){
        AllenVersionChecker
                .getInstance()
                .downloadOnly(UIData.create()
                                .setDownloadUrl("apk下载地址")
                                .setTitle("版本更新")
                                .setContent("点击下载新版本")

                ).executeMission(SettingActivity.this);

    }
}
